package demo;

import java.util.Scanner;

/**
 * 正则
 */
public class G_19 {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		while(true){
			String data = scanner.nextLine();
			if(data.matches("[1-9][0-9][0-9]")){
				int d = Integer.valueOf(data);
				boolean f = false;
				for(int i= d /7; i>0; i--){
					int j = d - 7*i;
//					System.out.println(j+" == "+(j / 11 *11 + j % 11));
					if(j / 11>0 && j % 11==0 && j / 11 *11 + j % 11 == j){
						f = true;
						System.out.println(d+"="+i+"*7+"+j / 11+"*11");
						break;
					}
				}
				if(!f){
					System.out.println("无法表示");
				}
			}else{
				System.out.println("重新输入:");
			}
		}
	}
}
